package com.example.javafx.bilibilidownload.constant;

/**
 * @author zengbang
 * @create 2024-07-22 11:25
 **/
public class BilibiliApiConstant {

    /**
     * Up个人主页，有Up的总视频数，视频分类等
     */
    public static final String UpPersonDetail = "https://api.bilibili.com/x/space/wbi/arc/search?mid=%s&ps=%s&tid=0" +
            "&pn=%s" +
            "&keyword=&order=click&jsonp=jsonp";

    /**
     * Up个人主页，有Up的总视频数，视频分类等
     */
    public static final String UpPersonDetailWithoutParam = "https://api.bilibili.com/x/space/wbi/arc/search?";

    /**
     * 根据视频的avid和bvid拿到视频和音频的地址
     */
    public static final String videoAndAudioUrl = "https://www.bilibili.com/video/%s";

    /**
     * 根据视频的avid和bvid以及page拿到视频和音频的地址
     */
    public static final String videoAndAudioUrlByPage = "https://www.bilibili.com/video/%s?p=%s";

    /**
     * 拿到我的关注列表，关注分类(不行了及时更新cookie)
     */
    public static final String getMyFocusList = "https://api.bilibili.com/x/relation/tags?jsonp=jsonp&callback=__jp3";

    /**
     * 根据收藏夹id，查询里面的up列表
     */
    public static final String getUpListByTagId = "https://api.bilibili.com/x/relation/tag?mid=%s&tagid=%s&pn=%s&ps" +
            "=50&jsonp=jsonp&callback=__jp5";

    /**
     * 获取我的收藏夹,拿到收藏夹id和名字
     */
    public static final String getMyFavoriteList = "https://api.bilibili.com/x/v3/fav/folder/list4navigate";

    /**
     * 根据收藏夹id分页查询收藏夹下的视频
     */
    public static final String getMyFavoriteDetailList = "https://api.bilibili" +
            ".com/x/v3/fav/resource/list?media_id=%s" +
            "&pn=%s&ps=%s&keyword=&order=mtime&type=0&tid=0&platform=web";

    /**
     * 获得登录信息(主要是因为bilibili的接口进行了加密)
     */
    public static final String getLoginInfo = "https://api.bilibili.com/x/web-interface/nav";


}
